<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title></title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<script type="text/javascript" src="./js/validator.js"></script>
<body>

	<div class="modal-header" border-radius=5;>
		<button type="button" class="close" data-dismiss="modal"
			aria-hidden="true">&times;</button>
		<h4 class="modal-title" id="myModalLabel">资产归还</h4>
	</div>
	<div class="modal-body">
		<form action="changestate.action" method="post" onSubmit="return Validator.Validate(this,3)">
			<table width="500" align="center">


				<tr height="26px">
					<td width="150px" align="right"><label>归还人ID</label><span
						class="required">* &nbsp; </span></td>
					<td width="350px"><input type="hidden" name="assetborretid"
						value="${assetborrowreturn.assetborretid}" /> <input
						type="hidden" name="assetid"
						value="${assetborrowreturn.asset.assetid}" /> <select
						class="form-control" name="returnerid">
							<option value=""></option>
							<c:forEach var="user" items="${users}">
								<option value=${user.userid }
									<c:if  test="${user.userid == assetborrowreturn.returnerid.userid}" > selected= "selected" </c:if>>${user.username
									}</option>


							</c:forEach>
					</select>
					</td>
				</tr>
				<tr>
					<td></br></td>
				</tr>
				<tr height="26px">
					<td width="150" align="right"><label>归还时间</label><span
						class="required">* &nbsp; </span></td>
					<td>

						<div class="input-append date form_datetime"  >
							<input class="form-control" type="text" name="returntime"
								value=""  dataType="Require" msg="输入不能为空"> <span class="add-on"><i
								class="icon-remove"></i>
							</span> <span class="add-on"><i class="icon-th"></i>
							</span> </span>
						</div>
						</td>
				</tr>
				<tr hidden>
					<td><input type="text" name="state" value="5" />
					</td>
				</tr>

			</table>
			<div class="modal-footer">
				<button type="button" class="btn btn-default btn-sm"
					data-dismiss="modal">关闭</button>
				<button type="submit" class="btn btn-primary btn-sm">提交更改</button>
			</div>
		</form>

	</div>

	<script type="text/javascript">
		$(".form_datetime").datetimepicker({
			format : "yyyy-mm-dd hh:mm:ss",
			autoclose : true,
			todayBtn : true,
			pickerPosition : "bottom-right"
			
			
		});
	</script>


</body>
</html>
